package com.dk.api;

import com.dk.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class OrderFeignApiFallback implements OrdersFeignApi {

    @Override
    public Result pay(Long cid, String AuthToken, Long num) {
        log.info(" springcloud-order-service,/order [pay]接口调用失败,触发熔断: {}", cid, AuthToken, num);
        return Result.fallback();
    }
}
